package com.chengdu.third.service.Impl;

import com.chengdu.third.dao.ITsfkDao;
import com.chengdu.third.pojo.Tsfk;
import com.chengdu.third.service.ITsfkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author jingbo
 * @create 2021--08--15  21:47
 */

@Service
public class ITsfkServiceImpl implements ITsfkService {

    @Autowired
    private ITsfkDao iTsfkDao;

    @Override
    public List<Tsfk> findAll() {
        return iTsfkDao.find();
    }

    @Override
    public void deleteByid(long id) {
         iTsfkDao.delete(id);
    }

    @Override
    public void updateByid(Tsfk tsfk) {
          iTsfkDao.update(tsfk);
    }

    @Override
    public void addtsfk(Tsfk tsfk) {
         iTsfkDao.add(tsfk);
    }

    @Override
    public Tsfk getTsfkById(long id) {
        return iTsfkDao.getTsfkById(id);
    }
}
